package com.example.mainstream.ui.merchant;

import android.text.TextUtils;
import android.view.View;

import com.example.shopapp.App;
import com.example.shopapp.R;
import com.example.shopapp.databinding.ActivityMerchantUserInfoBinding;

import cn.project.base.baseui.BaseNormalActivity;

public class MerchantUserInfoActivity extends BaseNormalActivity<ActivityMerchantUserInfoBinding> {
    @Override
    protected int getLayoutId() {
        return R.layout.activity_merchant_user_info;
    }

    @Override
    protected void initView() {

        mBinding.toolbar.rlBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        mBinding.toolbar.tvTitle.setText("用户信息");
        if (App.getInstance().merchant!=null){
            mBinding.sbPersonDataName.setRightText(App.getInstance().merchant.getUsername());
            mBinding.sbPersonDataPhone.setRightText(App.getInstance().merchant.getPhone());
            if (!TextUtils.isEmpty(App.getInstance().merchant.getMoney())){
                mBinding.sbPersonDataMoney.setRightText(App.getInstance().merchant.getMoney());
            }

        }

    }

    @Override
    protected void initData() {

    }
}
